package com.itheima.dao;

import com.itheima.pojo.SysDictData;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;


public interface SysDictDataMapper extends Mapper<SysDictData> {

    @Select("SELECT * from t_sys_dict_data where dict_type_uid = #{uid};")
    @Results({
            @Result(property = "dictTypeUid",column = "dict_type_uid"),
            @Result(property = "dictLabel",column = "dict_label"),
            @Result(property = "dictValue",column = "dict_value"),
            @Result(property = "cssClass",column = "css_class"),
            @Result(property = "listClass",column = "list_class"),
            @Result(property = "isDefault",column = "is_default"),
            @Result(property = "createByUid",column = "create_by_uid"),
            @Result(property = "updateByUid",column = "update_by_uid"),
            @Result(property = "createTime",column = "create_time"),
            @Result(property = "updateTime",column = "update_time"),
            @Result(property = "isPublish",column = "is_publish"),
    })
    List<SysDictData> getDictTypeListByUid(String uid);
}

